﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Gift.WebApp;
using System.Data;
using System.Threading;
using TDNSSms;

namespace Gift.WebApp
{
public partial class cn_send_message : System.Web.UI.Page
{


    // Methods
    protected void Button1_Click(object sender, EventArgs e)
    {
        //int iniResult = 0;
        //string taskID = "";
        //string name = "0002529";
        //string password = "J8d3D0N6";
        //string userType = "M6";
        //DNSSmsClass class2 = new DNSSmsClass();
        //class2.Login(name, password, userType, ref iniResult);
        //class2.SendSms("", this.txtMobile.Text, this.txtSendContent.Text, 0, "", "", 0, "", "", 0, ref taskID, ref iniResult);
        //if (iniResult == 0x7d0)
        //{
        //    base.ClientScript.RegisterStartupScript(base.GetType(), "message", "<script language=\"javascript\" defer>alert(\"发送成功！\");location.href=\"send_message.aspx\";</script>");
        //}
        //else
        //{
        //    base.ClientScript.RegisterStartupScript(base.GetType(), "message", "<script language=\"javascript\" defer>alert(\"发送失败！\");location.href=\"send_message.aspx\";</script>");
        //}
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!base.IsPostBack)
        {
            //DataEncryption encryption = new DataEncryption();
            //string str = encryption.MD5Encrypt("0002529");
            //string str2 = encryption.MD5Encrypt("J8d3D0N6");
        }
    }

}
}